package cy.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface BaseDaoI<T> {

	public Serializable save(T o);
	
	public T get(Class<T> c,String id);
	
	public T get(String hql);
	
	public T get(String hql,Object[] params);
	
	public T get(String hql,Map<String,Object> params);
	
	public void delete(T o);
	
	public int excuteHql(String hql);
	
	public void update(T o);
	
	public void saveOrUpdate(T o);
	
	public List<T> find(String hql);
	
	public List<T> find(String hql,Map<String,Object> params);
	
	public List<T> find(String hql,int page,int rows);
	
	public List<T> find(String hql,Map<String,Object> params,int page,int rows);
	
	public Long count(String hql);
	
	public Long count(String hql,Map<String,Object> params);
	
}
